this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.UI=this.BX.Landing.UI||{};(function(t,e,n,i,a){"use strict";var l,s,r;var c=function(t){babelHelpers.inherits(e,t);function e(){var t;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);t=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this,n));t.setEventNamespace("BX.Landing.UI.Field.PresetField");t.subscribeFromOptions(n.events);i.Dom.addClass(t.layout,"landing-ui-field-preset");t.setTitle(a.Loc.getMessage("LANDING_PRESET_FIELD_TITLE"));t.cache=new i.Cache.MemoryCache;t.onLinkClick=t.onLinkClick.bind(babelHelpers.assertThisInitialized(t));i.Dom.replace(t.layout,t.getLayout());t.layout=t.getLayout();return t}babelHelpers.createClass(e,[{key:"getLayout",value:function t(){var e=this;return this.cache.remember("layout",(function(){return i.Tag.render(l||(l=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="landing-ui-field-preset-layout">\n\t\t\t\t\t<div class="landing-ui-field-preset-left">\n\t\t\t\t\t\t','\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="landing-ui-field-preset-right">\n\t\t\t\t\t\t',"\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t"])),e.getIcon(),e.header,e.getLink())}))}},{key:"getIcon",value:function t(){return this.cache.remember("icon",(function(){return i.Tag.render(s||(s=babelHelpers.taggedTemplateLiteral(['<span class="landing-ui-field-preset-icon landing-ui-field-preset-icon-default"></span>'])))}))}},{key:"setIcon",value:function t(e){i.Dom.style(this.getIcon(),"background-image","url(".concat(e,")"))}},{key:"getLink",value:function t(){var e=this;return this.cache.remember("link",(function(){return i.Tag.render(r||(r=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="landing-ui-field-preset-link" onclick="','">\n\t\t\t\t\t',"\n\t\t\t\t</div>\n\t\t\t"])),e.onLinkClick,a.Loc.getMessage("LANDING_PRESET_DEFAULT_CASE_TITLE"))}))}},{key:"setLinkText",value:function t(e){this.getLink().textContent=e}},{key:"onLinkClick",value:function t(e){e.preventDefault();this.emit("onClick")}}]);return e}(n.BaseField);t.PresetField=c})(this.BX.Landing.UI.Field=this.BX.Landing.UI.Field||{},BX,BX.Landing.UI.Field,BX,BX.Landing);
//# sourceMappingURL=presetfield.bundle.map.js